
import 'dart:async';

import 'package:flutter/services.dart';

class FlutterActivemqPlugin {
  static const MethodChannel _channel =
      const MethodChannel('flutter_activemq_plugin');

  static Future<String> get platformVersion async {
    final String version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future<String> connectMq(String serverURI, String topic) async {
    final String msg = await _channel.invokeMethod('connectMq',{'serverURI': serverURI, 'topic': topic});
    print("wangc1:$msg");
    return msg;
  }
}
